﻿<UserControl xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="ProBugTracker.Module.Login.Views.Login"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Border CornerRadius="8" Background="#f5f5f5" Width="310">
    <Grid x:Name="LayoutRoot" Width="300">
        <Grid.Background>
            <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                <GradientStop Color="#f5f5f5" Offset="0"/>
                <GradientStop Color="#f5f5f5" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>
        <Grid Name="LogInGrid" Margin="10 0 10 0" >
            <Grid.RowDefinitions>
                <RowDefinition Height="40"/>
                <RowDefinition Height="5"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="5"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="5"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="5"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="5"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="5"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="5"/>
                <RowDefinition Height="40"/>
            </Grid.RowDefinitions>

            <TextBlock Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0 0 0 0" Text=" Sign In" Foreground="#FF373737" FontWeight="Light" FontSize="20" FontFamily="Corbel"/>

            <TextBlock Grid.Row="2" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0 0 0 0"  Text="Username" Foreground="#FF373737" FontWeight="Bold" FontSize="15" FontFamily="Corbel" />
            <TextBox Grid.Row="4" Grid.Column="0" Width="280" HorizontalAlignment="Left" Margin="0 0 0 0" Text="{Binding Path=UserName,Mode=TwoWay}"/>

            <TextBlock Grid.Row="6" Grid.Column="0" HorizontalAlignment="Left" Margin="0 0 0 0" VerticalAlignment="Center"  Text="Password" Foreground="#FF373737" FontWeight="Bold" FontSize="15" FontFamily="Corbel" />
            <TextBox Grid.Row="8" Grid.Column="0" Width="280" HorizontalAlignment="Left" Margin="0 0 0 0" Text="{Binding Path=Password,Mode=TwoWay}"/>

                <Button Name="btnSignIn" Grid.Row="10" Grid.Column="0" HorizontalAlignment="Left" Margin="0 0 0 0" Width="80" Content="Sign In" Command="{Binding LogIn}" />

            <HyperlinkButton Grid.Row="12" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="0 0 0 0" Content="Can't access your account?" />

            <TextBlock Grid.Row="14" Grid.Column="0" Width="360" HorizontalAlignment="Left" Margin="0 0 0 0" Foreground="Red" Text="{Binding Path=Message,Mode=TwoWay}"/>


        </Grid>
    </Grid>
    </Border>
</UserControl>
